<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>合并单元格</title>
</head>
<body>
    <table border="1" align="center">
        <tbody>
            <tr align="center">
                <td colspan="3">1-1</td><!--colspan 跨列合并-->
            </tr>
            <tr>
                <td>2-1</td>
                <td rowspan="2">2-2</td><!--rowspan 跨行合并-->
                <td>2-3</td>
            </tr>
            <tr>
                <td>3-1</td>
                <td>3-3</td>
            </tr>
        </tbody>
    </table>
</body>
</html>